<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
		<script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="test1"></div>
		  <script>
		  layui.use('transfer', function(){
		    var transfer = layui.transfer;
		   
		    //渲染
		    transfer.render({
		      elem: '#test1'  //绑定元素
		      ,data: [
		        {"value": "1", "title": "李白", "disabled": "", "checked": ""}
		        ,{"value": "2", "title": "杜甫", "disabled": "", "checked": ""}
		        ,{"value": "3", "title": "贤心", "disabled": "", "checked": ""}
		      ]
		      ,id: 'demo1' //定义索引
		    });
		  });
		  </script>
	</body>
</html>
